package dba

import (
	"MBTIx/models"

	"github.com/jmoiron/sqlx"
)

func GetAllMold(db *sqlx.DB, molds *[]models.Mold){
	db.Select(molds,`select * from mold order by mold_id`)
}

func GetMoldDesc(db *sqlx.DB,mold_id int, mold *string){
	db.Get(mold,
	`select mold_description from mold where mold_id = $1`,mold_id)
}